const router = require('koa-router')(),
  login=require('../models/comment.js'),
  {con}=require('mysql2/promise'),
  log=console.log;

router.prefix('/login')

router.get('/comment', async function (ctx, next) {
    const {userId,id,content} = (ctx.query);
    await login.comment(userId,id,content);
    ctx.body="成功";
})  

module.exports = router;